import React, { memo } from 'react'
import {Footer} from './DetailFooter.style'

function DetailFooter(props) {
    const {addToCart,buyNow}=props

    return (
        <Footer>
            <i className="iconfont icon-kefu"></i>
            <button className='addcart' onClick={addToCart}>加入购物车</button>
            <button className='buy' onClick={buyNow}>立即购买</button>
        </Footer>
    )
}

export default memo(DetailFooter)
